﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Function
{
    /// <summary>
    /// 通用接口返回实体
    /// </summary>
    public class CommonMsg
    {
        /// <summary>
        /// 消息编码
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string msg { get; set; }
    }

    /// <summary>
    /// token
    /// </summary>
    public class Token
    {
        public string token { get; set; }
        public string time { get; set; }
        public string code { get; set; }
    }

    /// <summary>
    /// php商品分类
    /// </summary>
    public class PHPGoodsType
    {
        /// <summary>
        /// 类型id
        /// </summary>
        public string cat_id { get; set; }
        /// <summary>
        /// 类型名字
        /// </summary>
        public string cat_name { get; set; }
        public string enabled { get; set; }
        public string attr_group { get; set; }
    }

    /// <summary>
    /// php商品通用信息
    /// </summary>
    public class PHPGoodsCommon
    {
        /// <summary>
        /// 商品名字
        /// </summary>
        public string goods_name { get; set; }

        /// <summary>
        /// 商品名字风格
        /// </summary>
        public string goods_name_style { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string goods_sn { get; set; }

        /// <summary>
        /// 类型id
        /// </summary>
        public string cat_id { get; set; }

        /// <summary>
        /// 品牌id
        /// </summary>
        public string brand_id { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        public string goods_img { get; set; }

        /// <summary>
        /// 商品图片缩略图
        /// </summary>
        public string goods_thumb { get; set; }

        /// <summary>
        /// 详细描述
        /// </summary>
        public string goods_desc { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        public string goods_weight { get; set; }

        /// <summary>
        /// 重量单位 千克
        /// </summary>
        public string weight_unit { get; set; }

        /// <summary>
        /// 加入推荐中的 精品
        /// </summary>
        public string is_best { get; set; }

        /// <summary>
        /// 加入推荐中的 新品
        /// </summary>
        public string is_new { get; set; }

        /// <summary>
        /// 加入推荐中的 热销
        /// </summary>
        public string is_hot { get; set; }

        /// <summary>
        /// 上架
        /// </summary>
        public string is_on_sale { get; set; }

        /// <summary>
        /// 免运费
        /// </summary>
        public string is_shipping { get; set; }

        /// <summary>
        /// 关键字
        /// </summary>
        public string keywords { get; set; }

        /// <summary>
        /// 简单描述
        /// </summary>
        public string goods_brief { get; set; }

        /// <summary>
        /// 商家备注
        /// </summary>
        public string seller_note { get; set; }
    }

    public class PHPGoodsProperty
    {
        /// <summary>
        /// 属性id
        /// </summary>
        public string attr_id { get; set; }

        /// <summary>
        /// 属性名
        /// </summary>
        public string attr_name { get; set; }

        /// <summary>
        /// 属性值
        /// </summary>
        public string attr_values { get; set; }

        /// <summary>
        /// 属性类型id
        /// </summary>
        public string cat_id { get; set; }
    }

    public class PHPLinkGoods
    {
        public string goods_sn { get; set; }
        public string is_double { get; set; }
    }

}
